package com.eastedu.superise.handler.question.handler.answerparentheses;

import lombok.Data;

import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * 内容分析概要信息
 *
 * @author luozhenzhong
 */
@Data
public class ContentSummary {

    /**
     * 计数器，用于记录括号数量（一道试题的题干）
     */
    private final AtomicInteger count;
    private final Map<Optional<String>, List<String>> details;

    /**
     * 暂时用来处理无序号时，记录答案的段落数量
     */
    @Deprecated
    private int paragraphCount;

    /**
     * Instantiates a new Profile.
     *
     * @param details the details
     */
    public ContentSummary(Map<Optional<String>, List<String>> details) {
        this.details = details;
        this.count = new AtomicInteger(details.size());
    }


}
